package homework2;

public class CarTest {

	public static void main(String[] args) {
		Car car = new Truck();
		Person person = new Person();
		person.drive(car);
		
		System.out.println("============================");
		Car car2 = new OxCart();
		person.drive(car2);
		
		System.out.println("============================");
		Car car3 = new MilitaryVehicle();
		person.drive(car3);
	}

}
